home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / 08p1.dir / 00001.ls next >
Encoding:
Text File  |  1999-04-06  |  1.5 KB  |  62 lines

  1. on startMovie
  2.   global gKnobSprite, gSendMovie, gCursorReady, gKnobState, gplaybtnsprite, gFNEngBtnSprite
  3.   gplaybtnsprite = 0
  4.   puppetSprite(48, 1)
  5.   gCursorReady = 1
  6.   gKnobSprite = 14
  7.   gSendMovie = "08p1"
  8.   gKnobState = 1
  9.   puppetSprite(gKnobSprite, 1)
  10.   setUpKnob()
  11.   set the mouseDownScript to EMPTY
  12.   set the mouseUpScript to EMPTY
  13.   sprite(24).visible = 0
  14. end
  15.  
  16. on stopMovie
  17.   global zeoIdle
  18.   stopmovieqt()
  19.   gplaybtnsprite = 23
  20.   zeoIdle = 0
  21. end
  22.  
  23. on idle
  24.   global gCursorReady
  25.   if gCursorReady = 1 then
  26.     cursor(200)
  27.     checkCursors()
  28.     set the locH of sprite 48 to the mouseH
  29.     set the locV of sprite 48 to the mouseV
  30.     updateStage()
  31.   end if
  32.   qtidle()
  33. end
  34.  
  35. on checkCursors
  36.   global zeoIdle
  37.   set the castNum of sprite 48 to the number of member "curs1"
  38.   repeat with i = 15 to 17
  39.     if rollOver(i) then
  40.       set the castNum of sprite 48 to the number of member "hotCursor"
  41.     end if
  42.   end repeat
  43.   repeat with i = 20 to 23
  44.     if the castNum of sprite i and (rollOver(i) and not zeoIdle) then
  45.       set the castNum of sprite 48 to the number of member "hotCursor"
  46.     end if
  47.   end repeat
  48.   repeat with i = 30 to 32
  49.     if rollOver(i) then
  50.       set the castNum of sprite 48 to the number of member "hotCursor"
  51.     end if
  52.   end repeat
  53.   repeat with i = 40 to 42
  54.     if rollOver(i) then
  55.       set the castNum of sprite 48 to the number of member "hotCursor"
  56.     end if
  57.   end repeat
  58.   if the castNum of sprite 47 and rollOver(47) then
  59.     set the castNum of sprite 48 to the number of member "hotCursor"
  60.   end if
  61. end
  62.